package com.sxg.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import com.sxg.utils.DateUtils;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
* 评论表
*
* @author 浪漫写尽歌谱 3298751420@qq.com
* @since 1.0.0 2024-03-07
*/
@Data
public class SxgCommentVO implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;

	@NotNull(message = "评论内容不能为空")
	private String content;

	private String images;

	private Long userId;

	private String userNickname;

	private String userAvatar;

	@NotNull(message = "商品id不能为空")
	private Long goodsId;

	private Long topCommentId;

	private Long parentId;

	private String parentNickname;

	private String parentAvatar;

	private String isDelete;

	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date createTime;

	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date updateTime;


}